﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FOBTV.Web.MainClass;

namespace FOBTV.Web.Admin
{
	public partial class Site : System.Web.UI.MasterPage
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!base.IsPostBack)
			{
				User adminSession = FOBTV.Web.MainClass.SessionState.CurrentUser;
				if (string.IsNullOrEmpty(adminSession.FirstName))
				{
					string LoginPage = StringUtil.GetAppConfigString("LoginPage");
					Response.Redirect(LoginPage);
				}
			}
		}
	}
}